<template>
	<view class="layout">
		<view class="header">
			<u-navbar leftIcon="arrow-left" @leftClick="leftClick" leftIconSize="48" title="个人信息" :titleStyle="titleStyle" :safeAreaInsetTop="true"> 
				<view class="u-nav-slot"  slot="right">
				  <u-icon name="edit-pen-fill" size="36"></u-icon>              
				</view>
			</u-navbar>
		</view>
		<view class="wrapper">
			<view class="item">
				<u-cell-group :border="false">
					<u-cell title="头像" :isLink="true" :border="false">
						<view slot="right-icon" class="u-slot-title">
						  <u-avatar :src="src" size="60"></u-avatar>  
							<u-icon name="arrow-right" size="36"></u-icon> 
						</view>
					</u-cell>
				</u-cell-group>
			</view>
			<view class="item">
				<u-cell-group :border="false">
					<u-cell title="昵称" :isLink="true" :border="false">
						<view slot="right-icon" class="u-slot-title">
						  <text>手动阀手动阀</text> 
							<u-icon name="arrow-right" size="36"></u-icon> 
						</view>
					</u-cell>
				</u-cell-group>
			</view>
		</view>
		<view class="userinfo">
			<view class="title">个人信息</view>
			<view class="item">
				<u-cell-group :border="false">
					<u-cell title="姓名" :isLink="true" :border="true" titleStyle="color: #666;fontSize: 28rpx">
						<view slot="right-icon" class="u-slot-title">
							<text>龚*虔</text>
						</view>
					</u-cell>
					<u-cell title="出生年月" :isLink="true" :border="true" titleStyle="color: #666;fontSize: 28rpx">
						<view slot="right-icon" class="u-slot-title">
							<text>2023年11月10日</text>
						</view>
					</u-cell>
					<u-cell title="身份证号" :isLink="true" :border="true" titleStyle="color: #666;fontSize: 28rpx">
						<view slot="right-icon" class="u-slot-title">
							<text>330**************9</text>
						</view>
					</u-cell>
					<u-cell title="手机号" :isLink="true" :border="false" titleStyle="color: #666;fontSize: 28rpx">
						<view slot="right-icon" class="u-slot-title">
							<text>153****4878</text>
						</view>
					</u-cell>
				</u-cell-group>
			</view>
		</view>
		<view class="userinfo">
			<view class="title">职位信息</view>
			<view class="item">
				<u-cell-group :border="false">
					<u-cell :icon="src" :border="false" iconStyle="width: 60rpx;height: 60rpx;borderRadius:50%">
						<view slot="right-icon" class="u-slot-title" >
							<text>上班族</text>
						</view>
					</u-cell>
				</u-cell-group>
			</view>
		</view>
		<view class="userinfo">
			<view class="title">企业信息</view>
			<view class="item">
				<view class="item-title">
					<view>企业名称</view>
					<u--textarea class="textarea" v-model="value" placeholder="请输入内容" autoHeight border="none"></u--textarea>
				</view>
				<view class="item-title">
					<view>统一社会信用代码</view>
					<u--textarea class="textarea" v-model="value" placeholder="请输入内容" autoHeight border="none"></u--textarea>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				titleStyle: {
					fontSize: '32rpx',
					color: '#333'
				},
				src: '../../static/images/bgCar01.png',
				value: 'asdasd'
			}
		},
		methods: {
			leftClick(){
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.layout{
		padding-bottom: 30rpx;
	}
	.header{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.wrapper{
		padding-top: 170rpx;
		margin: 0 30rpx;
		.item{
			background: #fff;
			border-radius: 16rpx;
			margin-bottom: 26rpx;
			.u-slot-title{
				display: flex;
				justify-content: flex-end;
				align-items: center;
				font-size: 28rpx;
			}
		}
	}
	.userinfo{
		margin: 30rpx 30rpx 0;
		.title{
			color: #333;
			font-family: Source Han Sans CN;
			font-size:32rpx;
			font-style: normal;
			font-weight: 500;
			margin-bottom: 20rpx;
		}
		.item{
			background: #fff;
			padding: 0 15rpx;
			border-radius: 16rpx ;
			.u-slot-title{
				display: flex;
				justify-content: flex-end;
				align-items: center;
				font-size: 28rpx;
				color: #333;
			}
			&-title{
				padding: 30rpx 10rpx 0;
				color: #666;
				font-family: Source Han Sans CN;
				font-size: 28rpx;
				font-style: normal;
				font-weight: 500;
				&:last-child{
					padding-bottom: 30rpx;
				}
				.textarea{
					background: #F8F8F8;
					border-radius: 8rpx;
					margin-top: 20rpx;
				}
			}
		}
	}
</style>